#ifndef DAP_MAIN_H
#define DAP_MAIN_H

#include "usbd_core.h"
#include "usbd_cdc.h"
#include "usbd_msc.h"
#include "chry_ringbuffer.h"

#include "drv_usb2uart.h"

extern chry_ringbuffer_t g_uartrx[2];
extern chry_ringbuffer_t g_usbrx[2];

void chry_dap_init(void);
void chry_dap_handle(void);
void chry_dap_usb2uart_handle(uint8_t cdc_id);

void chry_dap_usb2uart_uart_config_callback(struct cdc_line_coding *line_coding, uint8_t cdc_id);

#endif